export default {
  showDataInfoBar: true,
  loadDefault: true,
  deviewCodeName: 'tree_exp',
  deviewId: 'a73a5748f824d554426c432da82663fa',
  appWFId: 'workflow',
  accUserMode: 3,
  capLanguageRes: {
    lanResTag: 'DE.LNAME.MASTER',
  },
  caption: '树导航',
  codeName: 'master_tree_exp',
  appDataEntityId: 'web.master',
  appViewEngines: [
    {
      engineCat: 'VIEW',
      engineType: 'TreeExpView',
      id: 'engine',
    },
  ],
  appViewLogics: [
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        actionAfterWizard: 'DEFAULT',
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_NEWDATA',
        id: '新建数据',
      },
      builtinLogic: true,
      id: 'newdata',
    },
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        editMode: true,
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_OPENDATA',
        id: '打开数据',
      },
      builtinLogic: true,
      id: 'opendata',
    },
  ],
  appViewMsgGroupId: 'tree_exp',
  controls: [
    {
      xdataControlName: 'treeexpbar_tree',
      enableCounter: true,
      showTitleBar: true,
      autoLoad: true,
      showBusyIndicator: true,
      appViewRefs: [
        {
          realOpenMode: 'POPUPMODAL',
          realTitle: '区划信息',
          refAppViewId: 'web.region_info_view',
          name: 'EXPITEM:node',
          id: 'expitem:node',
        },
      ],
      controls: [
        {
          detreeNodeRSs: [
            {
              childDETreeNodeId: 'node',
              parentAppDEFieldId: 'parent_id',
              parentDER1N: {
                pickupDEFName: 'PARENT_ID',
                codeName: 'parent',
                dertype: 'DER1N',
                logicName: '上级区划',
                orderValue: 100,
                serviceCodeName: 'parent',
                name: 'DER1N_REGION_REGION_PARENT_ID',
                id: 'mock.region.der1n_region_region_parent_id',
              },
              parentDETreeNodeId: 'root',
              parentValueLevel: 1,
              searchMode: 3,
              id: '默认根节点 - 区划',
            },
            {
              childDETreeNodeId: 'node',
              parentAppDEFieldId: 'parent_id',
              parentDER1N: {
                pickupDEFName: 'PARENT_ID',
                codeName: 'parent',
                dertype: 'DER1N',
                logicName: '上级区划',
                orderValue: 100,
                serviceCodeName: 'parent',
                name: 'DER1N_REGION_REGION_PARENT_ID',
                id: 'mock.region.der1n_region_region_parent_id',
              },
              parentDETreeNodeId: 'node',
              parentValueLevel: 1,
              searchMode: 3,
              id: '区划 - 区划',
            },
          ],
          detreeNodes: [
            {
              nodeValue: '86',
              text: '默认根节点',
              nodeType: 'ROOT',
              treeNodeType: 'STATIC',
              hasDETreeNodeRSs: true,
              expanded: true,
              rootNode: true,
              name: '默认根节点',
              id: 'root',
            },
            {
              dataSourceType: 'DEDATASET',
              idAppDEFieldId: 'id',
              appDEDataSetId: 'fetch_default',
              sortDir: 'ASC',
              sortAppDEFieldId: 'sort',
              textAppDEFieldId: 'name',
              navAppViewId: 'web.region_info_view',
              nodeType: 'node',
              appDataEntityId: 'web.region',
              treeNodeType: 'DE',
              hasDETreeNodeRSs: true,
              enableQuickSearch: true,
              expanded: true,
              name: '区划',
              id: 'node',
            },
          ],
          outputIconDefault: true,
          navViewPos: 'NONE',
          createControlAction: {
            appDEMethodId: 'create',
            appDataEntityId: 'web.master',
            id: 'create',
          },
          fetchControlAction: {
            appDataEntityId: 'web.master',
            id: 'fetch',
          },
          getControlAction: {
            appDEMethodId: 'get',
            appDataEntityId: 'web.master',
            id: 'load',
          },
          removeControlAction: {
            appDEMethodId: 'remove',
            appDataEntityId: 'web.master',
            id: 'remove',
          },
          updateControlAction: {
            appDEMethodId: 'update',
            appDataEntityId: 'web.master',
            id: 'update',
          },
          autoLoad: true,
          showBusyIndicator: true,
          codeName: 'tree_exp_tree_view',
          controlType: 'TREEVIEW',
          logicName: '树导航_树视图',
          appDataEntityId: 'web.master',
          controlLogics: [
            {
              eventNames: 'SELECTIONCHANGE',
              logicTag: 'treeexpbar_tree',
              logicType: 'CUSTOM',
              triggerType: 'CTRLEVENT',
              id: 'treeexpbar_selectionchange',
            },
            {
              eventNames: 'LOAD',
              logicTag: 'treeexpbar_tree',
              logicType: 'CUSTOM',
              triggerType: 'CTRLEVENT',
              id: 'treeexpbar_load',
            },
          ],
          controlParam: {
            id: 'treeexpbar_tree',
          },
          modelId: '8b00cb6d39077f287e9c7e3c3d909b54',
          modelType: 'PSDETREEVIEW',
          name: 'treeexpbar_tree',
          id: 'web.master.tree_exp_tree_view',
        },
      ],
      codeName: 'tree_exp_treeexpbar',
      controlType: 'TREEEXPBAR',
      appDataEntityId: 'web.master',
      controlParam: {
        id: 'treeexpbar',
      },
      modelId: 'c5c2157af99616b329c2d3c2a3d813f7_treeexpbar',
      modelType: 'PSEXPBAR',
      name: 'treeexpbar',
      id: 'tree_exp_treeexpbar',
    },
    {
      groupMode: 'SINGLE',
      quickSearchMode: 1,
      enableQuickSearch: true,
      controlType: 'SEARCHBAR',
      appDataEntityId: 'web.master',
      controlParam: {
        id: 'searchbar',
      },
      id: 'searchbar',
    },
    {
      capLanguageRes: {
        lanResTag: 'DE.LNAME.MASTER',
      },
      caption: '树导航',
      codeName: 'tree_exp_captionbar',
      controlType: 'CAPTIONBAR',
      appDataEntityId: 'web.master',
      controlParam: {},
      name: 'captionbar',
      id: 'tree_exp_captionbar',
    },
  ],
  viewLayoutPanel: {
    layoutBodyOnly: true,
    useDefaultLayout: true,
    layoutPanel: true,
    codeName: 'layoutpanel',
    controlStyle: 'APPDETREEEXPVIEW',
    controlType: 'VIEWLAYOUTPANEL',
    appDataEntityId: 'web.master',
    controlParam: {},
    id: 'layoutpanel',
  },
  title: '树导航',
  viewStyle: 'DEFAULT',
  viewType: 'DETREEEXPVIEW',
  enableDP: true,
  showCaptionBar: false,
  modelId: 'c5c2157af99616b329c2d3c2a3d813f7',
  modelType: 'PSAPPDEVIEW',
  name: 'MASTERtree_exp',
  id: 'web.master_tree_exp',
};
